package com.zxw.flow.api;

import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.flow.domain.entity.FlowBasicInfo;
import com.zxw.flow.domain.vo.FlowBasicInfoPageVO;
import com.zxw.flow.domain.vo.FlowBasicInfoVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author Xuewei.Zhang
 * @date 2022/7/7
 */
public interface FlowBasicInfoApi {
    @GetMapping("/page")
    BasePageRes<FlowBasicInfo> page(FlowBasicInfoPageVO flowBasicInfoPageVO);

    @GetMapping("/{flowBasicInfoId}")
    BaseRes<FlowBasicInfo> findFlowBasicInfoById(@PathVariable("flowBasicInfoId") Long flowBasicInfoId);

    @PostMapping("/insert")
    BaseRes<FlowBasicInfoVO> insertFlowBasicInfo(@RequestBody FlowBasicInfoVO flowBasicInfoVO);

    @PutMapping("/update/{flowBasicInfoId}")
    BaseRes updateFlowBasicInfo(@PathVariable("flowBasicInfoId") Long flowBasicInfoId, @RequestBody FlowBasicInfoVO flowBasicInfoVO);

    @DeleteMapping("/{flowBasicInfoIds}")
    BaseRes deleteFlowBasicInfo(@PathVariable("flowBasicInfoIds") String flowBasicInfoIds);
}
